package com.groupsix.mapper;

import com.groupsix.entity.Dormgrade;
import com.groupsix.entity.DormgradeExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * 宿舍卫生
 */
public interface DormgradeMapper {

    /**
     * 进行分页查询
     */
    //获取总条数
    public Integer totalCount(@Param("dId") Integer dId, @Param("dDormbuilding") String dDormbuilding);
    //获取用户列表
    public List<Dormgrade> getDormgradeList(@Param("dId") Integer dId, @Param("dDormbuilding") String dDormbuilding, @Param("currentPage") Integer currentPage, @Param("pageSize") Integer pageSize);

    public int addDormgrade(Dormgrade dormgrade);    //添加宿舍卫生信息
    public int deleteDormgrade(Integer gId);   //删除宿舍卫生信息
    public int updateDormgrade(Dormgrade dormgrade); //修改宿舍卫生信息
    public Dormgrade findDormgradeById(Integer gId); //通过id查询宿舍卫生信息
    public List<Dormgrade> getAll();


    int countByExample(DormgradeExample example);

    int deleteByExample(DormgradeExample example);

    int deleteByPrimaryKey(Integer gId);

    int insert(Dormgrade record);

    int insertSelective(Dormgrade record);

    List<Dormgrade> selectByExample(DormgradeExample example);

    Dormgrade selectByPrimaryKey(Integer gId);

    int updateByExampleSelective(@Param("record") Dormgrade record, @Param("example") DormgradeExample example);

    int updateByExample(@Param("record") Dormgrade record, @Param("example") DormgradeExample example);

    int updateByPrimaryKeySelective(Dormgrade record);

    int updateByPrimaryKey(Dormgrade record);
}